{include file="public/header" title="$title" /}
        <div class="content-inner">
          <!-- Page Header-->
          <header class="page-header">
            <div class="container-fluid">
              <h2 class="no-margin-bottom">用户测试记录</h2>
            </div>
          </header>
          <!-- Breadcrumb-->
          <div class="breadcrumb-holder container-fluid">
            <ul class="breadcrumb">
              <li class="breadcrumb-item"><a href="{:url('admin.index')}">首页</a></li>
              <li class="breadcrumb-item active">用户测试记录            </li>
            </ul>
          </div>
          <section class="tables">   
            <div class="container-fluid">
              <div class="row">
                <div class="col-lg-12">
                  <div class="card">
                    <div class="card-body">
                      <div class="table-responsive">                       
                        <table class="table table-striped table-hover">
                          <thead>
                            <tr>
                              <th>ID</th>
                              <th>客户姓名</th>
                              <th>联系方式</th>
                              <th>测试结果</th>
                              <th>适合的移民方式</th>
                            </tr>
                          </thead>
                          <tbody>
                          {foreach $usersAnswer as $key => $item}
                            <tr>
                              <th scope="row">{$item.user_info.id}</th>
                              <td>{$item.user_info.name}</td>
                              <td><a href="tel:{$item.user_info.phone}">{$item.user_info.phone}</a></td>
                              <td>
                                {foreach $item.option as $option}
                                  {$option.join_question.title}&nbsp;
                                  {foreach $option.join_option as $join_option}
                                    {$join_option.content}&nbsp;
                                  {/foreach}
                                  <br>
                                {/foreach}
                              </td>
                              <td>
                                {foreach $item.country_intro as $country_intro}
                                {$country_intro.name}<br>
                                {/foreach}
                              </td>
                            </tr>
                          {/foreach}
                          </tbody>
                        </table>
                      </div>
                      <div class="row">
                        <div class="col-md-12">
                          <nav aria-label="Page navigation">
                            <ul class="pagination">
                              <li class="page-item">
                                <a href="?page={if $page.page<=1}1{else}{$page.page-1}{/if}" aria-label="previous" class="page-link">
                                  <span>上一页</span>
                                </a>
                              </li>
                              {for start="1" end="$page.count+1"}
                              <li class="page-item {if $i == $page.page}active{/if}"><a href="?page={$i}" class="page-link">{$i}</a></li>
                              {/for}
                              <li class="page-item">
                                <a href="?page={if $page.page >= $page.count}{$page.page}{else}{$page.page+1}{/if}" aria-label="Next" class="page-link">
                                  <span>下一页</span>
                                </a>
                              </li>
                            </ul>
                          </nav>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </section>
        </div>
{include file="public/footer""/}